//
//  LS_SearchView.h
//  yiYuanDuoBao
//
//  Created by 罗李苏 on 16/11/29.
//  Copyright © 2016年 罗李苏. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LS_SearchView;
@protocol LS_SearchViewDelegate <NSObject>

@optional
-(BOOL)searchBarShouldBeginEditing:(LS_SearchView *)searchBar;
-(void)searchBarTextDidBeginEditing:(LS_SearchView *)searchBar;
-(BOOL)searchBarShouldEndEditing:(LS_SearchView *)searchBar;
-(void)searchBarTextDidEndEditing:(LS_SearchView *)searchBar;
-(void)searchBar:(LS_SearchView *)searchBar textDidChange:(NSString *)searchText;
-(void)searchBarSearchButtonClicked:(LS_SearchView *)searchBar;//确定按钮
-(void)searchBarCancelButtonClicked:(LS_SearchView *)searchBar;


@end
@interface LS_SearchView : UIView
@property (nonatomic, strong) UIButton *cancelBtn;

//文本的颜色
@property (nonatomic,strong) UIColor *textColor;
//字体
@property (nonatomic,strong) UIFont *searchBarFont;
//内容
@property (nonatomic,strong) NSString *text;
//背景颜色
@property (nonatomic,strong) UIColor *searchBarColor;
//默认文本
@property (nonatomic,strong) NSString *placeHolder;
//默认文本的颜色
@property (nonatomic,strong) UIColor *placeHoldersColor;
//默认文本字体大小
@property (nonatomic,strong) UIFont *placeHolderFont;
//是否弹出键盘
@property (nonatomic,assign) BOOL isBecomeFirstResponder;
//设置右边按钮的样式
@property (nonatomic,strong) UIImage *deleteImage;
//设置代理
@property (nonatomic,weak) id<LS_SearchViewDelegate>delegate;
@end
